package com.wxg.common.core.module.user.dao.mysql;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author void
 * @date 2022/08/06/23:50
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Address implements Serializable {
    private Long addressId;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Long userId;

    /**
     * 省
     *
     * @mbg.generated
     */
    private String province;

    /**
     * 市
     *
     * @mbg.generated
     */
    private String city;

    /**
     * 区
     *
     * @mbg.generated
     */
    private String district;

    /**
     * 详细地址
     *
     * @mbg.generated
     */
    private String detailAddress;

    /**
     * 地区编码
     *
     * @mbg.generated
     */
    private String adcode;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 删除时间
     *
     * @mbg.generated
     */
    private Date deleteTime;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", addressId=").append(addressId);
        sb.append(", userId=").append(userId);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", district=").append(district);
        sb.append(", detailAddress=").append(detailAddress);
        sb.append(", adcode=").append(adcode);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleteTime=").append(deleteTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}